var foo = "foo";

// if (true) {
//   console.log(foo)

//   let foo = "abc"
// }

// let foo = "foo";
function bar() {
  // console.log(foo); // 暂时性死区
  // Cannot access 'foo' before initialization
  let foo = "abc";
}

bar();

var name1 = "abc";
let name2 = "cba";
const name3 = "nba";

// 构建工具的基础上创建项目\开发项目 webpack/vite/rollup
// babel
// ES6 -> ES5

const info = { name: "why" };

info = { name: "kobe" };
